SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

AUX_SOURCE_DIRECTORY(./comm DIR_SRC)
AUX_SOURCE_DIRECTORY(./config DIR_SRC)
AUX_SOURCE_DIRECTORY(./event DIR_SRC)
AUX_SOURCE_DIRECTORY(./cache/utils DIR_SRC)
AUX_SOURCE_DIRECTORY(./cache/disk DIR_SRC)
AUX_SOURCE_DIRECTORY(./http DIR_SRC)

ADD_LIBRARY(mycache STATIC ${DIR_SRC})
TARGET_LINK_LIBRARIES(mycache pthread yaml m)